alignHorizontally

abstract fun alignHorizontally(blocks: List<DesignBlock>, alignment: HorizontalBlockAlignment)

Align multiple blocks vertically within their bounding box or a single block to its parent. Required scope: "layer/move"

Parameters

blocks

a non-empty array of block ids that should be aligned.

alignment

How they should be aligned: left, right, or center